package com.egg.common.util;


import cn.hutool.core.util.ObjectUtil;

/**
 * 默认值 工具类
 *
 * @author east
 */
public class DefaultValueUtil {

    /**
     * 分页参数默认值设置
     *
     * @param current
     * @param pageSize
     */
    public static void page(Integer current, Integer pageSize) {
        if (ObjectUtil.isEmpty(current)
                || current <= 0
        ) {
            current = 1;
        }
        if (ObjectUtil.isEmpty(pageSize)
                || pageSize <= 0
        ) {
            pageSize = 10;
        }
    }

}